setRotation

abstract fun setRotation(block: DesignBlock, radians: Float)

Update a block's rotation. Required scope: "layer/rotate"

Parameters

block

the block to update.

radians

the new rotation in radians. Rotation is applied around the block's center.